package temp.lho.lws.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import temp.lho.lws.pojo.ClaimMainInfo;
import temp.lho.lws.service.IClaimMainInfoService;

import javax.annotation.Resource;

/**
 * (ClaimMainInfo)表控制层
 *
 * @author makejava
 * @since 2020-07-06 23:08:54
 */
@RestController
@RequestMapping("claimMainInfo")
public class ClaimMainInfoController {
    /**
     * 服务对象
     */
    @Resource
    private IClaimMainInfoService claimMainInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public ClaimMainInfo selectOne(Integer id) {
        return this.claimMainInfoService.queryById(id);
    }

}